report

fun <T> report(value: T, type: ValidationResult.ErrorEntry.Type<String>, error: String, e: Throwable? = null): T

Pass-through method that attaches a string-based error to this mutable and then provides the value back that prompted the error

You can see an example of this in ValidatedColor

Return

value out the other end

Author

fzzyhmstrs

Since

0.7.0

Parameters

T

the value type to pass through

value

T instance that will be returned by this method

type

Type a string-based error type

error

The error message

e

Throwable, nullable exception if the error was caused by a throw